<template>
	<view class="wrapper">
		<view class="center f30">
			<view class="c666">
				专聊id或手机号
			</view>
			<input type="text" placeholder="请输入专聊id或手机号" class="flex" placeholder-class="c999" v-model="id"/>
		</view>
		<button type="primary" class="cfff" @tap="openSearch">搜索</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				id:''
			};
		},
		onShow() {
			
		},
		onLoad() {
			
		},
		methods:{
			openSearch(){
				if(this.id==''){this.$sToast('关键字不能为空');return}
				this.$open('./addFriendNext?id='+this.id)
			}
		}
	}
</script>

<style lang="scss">
page{
	background: #f3f3f3;
	button{
		width:710rpx;
		height:80rpx;
		line-height:80rpx;
		background-color:rgba(2,151,254,1);
		border-radius:4rpx;
		margin: 20rpx auto;
	}
	.center{
		background: #FFFFFF;
		input{
			height: 104rpx;
			line-height: 104rpx;
		}
		.c666{
			margin: 0 30rpx 0 31rpx;
		}
	}
}
</style>
